import React from 'react';
import './App.scss';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Dashboard from './Dashboard';
import Hub from './Hub';
import Login from './Login';
import InitialLogin from './InitialLogin';


function App() {
    return (
        <BrowserRouter className="App">
            <Routes>
                <Route path="/" element={<Dashboard />} />
                <Route path="/dashboard" element={<Dashboard />} />
                <Route path="/hub/<hub_id>" element={<Hub />} />
                <Route path="/login" element={<Login />} />
                <Route path="/init_smartcab" element={<InitialLogin />} />
            </Routes>
      </BrowserRouter>
    );
}

export default App;
